package com.zhang.crawler.utils;

/**
 * Date:        2019/12/10
 * Author:      yoyo
 * Version:     1.0.0.0
 * Description: TO DO
 */
public enum StatusCode implements GlobalStatusCode {

    RESULT_SUCCESS("00000000", "SUCCESS"),
    DATA_NULL("00000001","查询数据为空"),
    OPERA_DATA_NULL("00000002","操作数据不存在"),
    UPLOAD_FILE_ERROR("00000003" , "上传文件失败"),
    SYSTEM_EXCEPTION("99999999", "系统异常");
    private String statusCode;
    private String message;

    StatusCode(String statusCode, String message) {
        this.statusCode = statusCode;
        this.message = message;
    }

    @Override
    public String getStatusCode() {
        return statusCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
